package com.art8173.mapper;

import com.art8173.pojo.Clazz;
import com.art8173.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClazzMapper {


    List<Clazz> page(ClazzQueryParam clazzQueryParam);

    Clazz getById(Integer id);


    void save(Clazz clazz);

    void update(Clazz clazz);

    void deleteByIds(Integer id);

    Integer countStudentsByClazzId(Integer clazzId);

    List<Clazz> list();

    @MapKey("clazz")
    List<Map<String, Object>> countStudentClazzData();
}
